package com.gk.bean;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class CommonDto   implements Serializable{


    /**
     * xml : {"content":{"detail":{"main":{}}},"header":{"businessType":"T102","gcompanyid":"547001","sendSource":"CMS","sendTime":"2019-12-17 07:10:25","sendType":0,"sender":"CE_HB","sys":"AMQ"}}
     */

    private XmlBean xml = new XmlBean();

    public XmlBean getXml() {
        return xml;
    }

    public void setXml(XmlBean xml) {
        this.xml = xml;
    }

    public static class XmlBean {
        /**
         * content : {"detail":{"main":{}}}
         * header : {"businessType":"T102","gcompanyid":"547001","sendSource":"CMS","sendTime":"2019-12-17 07:10:25","sendType":0,"sender":"CE_HB","sys":"AMQ"}
         */

        private ContentBean content = new ContentBean();
        private HeaderBean header;

        public ContentBean getContent() {
            return content;
        }

        public void setContent(ContentBean content) {
            this.content = content;
        }

        public HeaderBean getHeader() {
            return header;
        }

        public void setHeader(HeaderBean header) {
            this.header = header;
        }

        public static class ContentBean {
            /**
             * detail : {"main":{}}
             */

            private DetailBean detail =new DetailBean();

            public DetailBean getDetail() {
                return detail;
            }

            public void setDetail(DetailBean detail) {
                this.detail = detail;
            }

            public static class DetailBean<T> {
                /**
                 * main : {}
                 */

                private T main;
                private sub sub = new sub() ;

                public T getMain() {
                    return main;
                }

                public void setMain(T main) {
                    this.main = main;
                }

                public ContentBean.sub getSub() {
                    return sub;
                }

                public void setSub(ContentBean.sub sub) {
                    this.sub = sub;
                }
            }

            public static class sub<T> {
                private List<T> subline = new ArrayList<>() ;
                public List<T> getSubline() {
                    return subline;
                }

                public void setSubline(List<T> subline) {
                    this.subline = subline;
                }
            }
        }

    }
}
